﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;

namespace YasharEl.Infrastructure.PersistenceModel.Dao
{
    [Serializable]
    public abstract class OrderByComparator : IComparer
    {
        #region Methods

        public virtual string GetOrderBy()
        {
            return null;
        }

        #endregion

        #region IComparer Members

        public abstract int Compare(object x, object y);

        #endregion

        #region ToString Override

        public override string ToString()
        {
            return GetOrderBy();
        }

        #endregion
    }
}
